wayland: fix xdg_surface test in move/resize drag
authorOlivier Fourdan <ofourdan@redhat.com>
Fri, 2 Jun 2017 13:54:50 +0000 (15:54 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Fri, 2 Jun 2017 14:19:00 +0000 (16:19 +0200)
commit24f9d2909393b8a2267e30d3f8b6e31d6aaee850
treedfbd9b9cca9b4de5c5938a61a5ed80d49d4ac21b
parent08aade4b7c4ff011402aada4270a6c4260d30958
wayland: fix xdg_surface test in move/resize drag

begin_resize_drag() and begin_move_drag() check for xdg_surface being
not null, but those apply on xdg_toplevel so they should check for
xdg_toplevel being non-null instead.

https://bugzilla.gnome.org/show_bug.cgi?id=781945
gdk/wayland/gdkwindow-wayland.c